package com.xnyy.lottery.config;

import com.xnyy.lottery.util.NginxUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.context.annotation.Configuration;

/**
 * nginx启动
 *
 * @Author xiesh
 * @Date 2022-09-22 9:07
 * @Version 1.0
 */
@Slf4j
@Configuration
public class NginxStartRunner implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        log.info("执行启动nginx 开始");
        NginxUtil.start();
        log.info("执行启动nginx 结束");
    }
}
